package com.example.lbstest.mapper;


import java.util.List;

import com.example.lbstest.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserMapper {

    List<User> selectAllUser(User user);

    List<User> selectPreUser();

    void addUser(User user);

    void updateUser(User user);

    void deleteUser(long id);

    User login(@Param("loginname")String loginname,@Param("password")String password);
}
